/* 
 * File:   Search.h
 * Author: joseluis
 *
 * Created on 26 de diciembre de 2012, 11:41
 */

#ifndef _SEARCH_H
#define	_SEARCH_H

#include "ui_Search.h"
#include "PersonalWidget.h"
#include <string>
#include <vector>

#include "RCons.h"
#include "AgentDB.h"

class Search : public QDialog {
    Q_OBJECT
public:
    Search(int argc, char *argv[]);
    virtual ~Search();
private slots:
    void lupa_clicked();
    void similars_clicked();
    void add_clicked();
private:
    Ui::Search widget;
    std::vector<PersonalWidget> *references;
    
    vector<InfoDoc> *sol;
    vector<InfoDoc>::iterator it;
    
    void add_widget(InfoDoc info);
    void Consulta(std::string question, bool checked);
    void show_res();
};

#endif	/* _SEARCH_H */
